// 选择规格弹出层
// @import "@/common/styles/goods/spec.scss";

page,
.container {
    background: $theme-main-bg-color;
    padding-bottom: 160rpx;
}

.carousel {
    height: 750rpx;
    position: relative;

    swiper {
        height: 100% !important;
    }

    .image-wrapper {
        width: 100%;
        height: 100%;
    }

    .swiper-item {
        display: flex;
        justify-content: center;
        align-content: center;
        height: 750rpx;
        overflow: hidden;

        image {
            width: 100%;
            height: 100%;
        }
    }

    .activity-wrap {
        z-index: 90;
        left: 0;
        right: 0;
        bottom: 0;
        height: 112rpx;
        overflow: hidden;

        &__content {
            width: 100%;
            height: 100%;

            image {
                z-index: -1;
                width: 100%;
                height: 100%;
                left: 0;
                right: 0;
                top: 0;
                bottom: 0;
            }

            &-desc {
                // padding: 0 40rpx 0 30rpx;
                height: 100%;
                background-color: #ffffff;

                .activity-wrap-left {
                    position: relative;
                    padding-left: 30rpx;
                    width: 534rpx;
                    height: 100%;
                    overflow: hidden;

                    .triangle {
                        position: absolute;
                        top: 0;
                        right: 0;
                        z-index: 95;
                        width: 0;
                        height: 0;
                        border-top: 58rpx solid transparent;
                        border-right: 26rpx solid;
                        border-bottom: 58rpx solid transparent;
                        border-left: 26rpx solid transparent;
                    }

                    .activity-title {
                        margin: 0 12rpx;
                        width: 72rpx;
                        height: 72rpx;
                        border-radius: 16rpx;

                        image {
                            width: 48rpx;
                            height: 48rpx;
                        }
                    }

                    .activity-people {
                        margin-top: 12rpx;
                        margin-left: 6rpx;
                        font-size: 20rpx;
                    }

                    .activity-price-box {

                        // display: flex;
                        // align-items: flex-end;
                        // flex-direction: row;
                        margin-top: 10rpx;

                        .cut-price-box {
                            display: inline-block;
                            line-height: 42rpx;
                            font-weight: bold;

                            .price {
                                display: inline-block;
                                vertical-align: 0;
                                font-size: 42rpx;

                                &::before {
                                    content: "￥";
                                    display: inline-block;
                                    vertical-align: 0;
                                    font-weight: 400;
                                    font-size: 36rpx;
                                }
                            }
                            /* 价格小数点 */
                            .decimal {
                                display: inline-block;
                                vertical-align: 0;

                                &::before {
                                    content: ".";
                                    display: inline-block;
                                    vertical-align: 0;
                                }
                            }

                            .price-start {
                                font-weight: 400;
                                font-size: $theme-size-base;
                                margin-left: 8rpx;
                                display: inline-block;
                                vertical-align: 0;
                            }
                        }

                        .late-price {
                            display: inline-block;
                            padding-bottom: 2rpx;
                            margin-left: 8rpx;
                            font-size: 24rpx;

                            &::before {
                                content: "￥";
                            }
                        }
                    }

                }

                .activity-countdown-box {
                    position: relative;
                    flex: 1;
                    height: 100%;
                    padding: 0;
                    margin: 0;
                    border: 0;

                    .countdown-title {
                        margin-bottom: 8rpx;
                        font-size: 24rpx;
                    }
                }
            }
        }
    }
}

/* 商品简介 begin */
.introduce-section {
    position: relative;
    background: $theme-panel-bg-color;
    padding: 28rpx 24rpx;

    .title-wrap {
        // .activity-num {
        //   width: 96rpx;
        //   height: 40rpx;
        //   line-height: 40rpx;
        //   color: #fff;
        //   background: #f8681f;
        //   font-size: 20rpx;
        //   border-radius: 6rpx;
        //   margin-right: 10rpx;
        // }
        width: 606rpx;

        .title {
            font-size: 28rpx;
            color: $theme-color-main-base;
            font-weight: 500;
        }
    }

    .price-box {
        display: flex;
        margin-top: 20rpx;

        .cut-price-box {
            display: inline-block;
            line-height: 42rpx;
            font-weight: bold;

            .price {
                font-size: 48rpx;

                &::before {
                    content: "￥";
                    font-weight: 400;
                    font-size: 42rpx;
                }
            }

            .decimal {
                font-size: 42rpx;

                &::before {
                    content: ".";
                }
            }

            .price-start {
                font-weight: 400;
                font-size: $theme-size-base;
            }

            .late-price {
                font-weight: 400;
                margin-left: 6rpx;
                font-size: 24rpx;
                // margin-bottom: 4rpx;
                color: $theme-color-ghost-base;

                &::before {
                    content: "￥";
                }
            }
        }
    }

    .share-box {
        position: absolute;
        display: flex;
        align-items: center;
        justify-content: center;
        right: 0;
        bottom: 38rpx;
        width: 120rpx;
        height: 56rpx;
        border-radius: 200rpx 0 0 200rpx;
        overflow: hidden;
        background-color: #f3f4f5;

        /deep/ .template__icon {
            color: $theme-color-ghost-base;
        }

        button.btn {
            font-size: 24rpx;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 0;
            width: 100%;
            height: 100%;
            background-color: #f3f4f5;
            color: $theme-color-ghost-base;
        }

        .text {
            margin-left: 8rpx;
        }
    }

    .coupon-tip {
        align-items: center;
        padding: 4rpx 10rpx;
        font-size: $theme-size-small-base;
        color: #fff;
        border-radius: 6rpx;
        line-height: 1;
        transform: translateY(-4rpx);
    }
}

/* 商品简介 begin */

/** 其他信息 begin */
.meta-section {
    margin-top: 20rpx;
    background: $theme-panel-bg-color;
    padding: 28rpx 24rpx;
    font-size: 28rpx;
    color: $theme-color-ghost-base;
    background: #fff;

    &__title {
        display: flex;
        align-items: center;
        justify-content: space-between;

        .content {
            color: $theme-color-main-base;
            margin-left: 36rpx;
            flex: 1;
            display: flex;
            align-items: center;
        }
    }

    &__spec {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 40rpx;

        .right {
            display: flex;
            align-items: center;

            .right-text {
                margin-right: 8rpx;
            }
        }
    }

    &__game {
        line-height: 34rpx;
        font-size: 24rpx;
        margin-top: 24rpx;
    }
}

/** 其他信息 end */

/*  详情 */
.detail-desc {
    background: #fff;
    margin-top: 16rpx;
    width: 100%;

    .d-header {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 80rpx;
        font-size: 28rpx;
        color: $theme-color-base;
        position: relative;

        text {
            padding: 0 20rpx;
            background: #fff;
            position: relative;
            z-index: 1;
        }

        &:after {
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translateX(-50%);
            width: 300rpx;
            height: 0;
            content: "";
            border-bottom: 1px solid #ccc;
        }
    }
}

/* 底部操作菜单 */
.page-bottom {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0rpx;
    //   bottom: var(--safe-area-inset-bottom);
    padding: 14rpx 22rpx;
    z-index: 95;
    //   align-items: center;
    height: calc(108rpx + var(--safe-area-inset-bottom));
    //   height: 300rpx;
    background: $theme-panel-bg-color;
    box-shadow: 0 -2rpx 0 0 rgba(204, 204, 204, 0.5);

    .page-bottom-box {
        width: 100%;
        display: flex;
        justify-content: space-between;
        color: $theme-color-ghost-base;

        .p-b-btn {
            display: flex;
            flex-direction: column;
            align-items: center;
            // justify-content: center;
            margin-right: 35rpx;

            .page-bottom-name {
                margin-top: 4rpx;
                font-size: 20rpx;
            }
        }

        .action-btn-group {
            display: flex;
            height: 80rpx;
            border-radius: 200rpx;
            overflow: hidden;

            margin-left: 20rpx;
            position: relative;

            .action-btn {
                display: flex;
                align-items: center;
                justify-content: center;
                width: 216rpx;
                height: 100%;
                font-size: 28rpx;
                padding: 0;
                border-radius: 0;
                background: transparent;
                &.just-show {
                    width:431rpx;
                }
            }

        }
    }
}

/** 倒计时样式 begin */
.activity-countdown-box {
    /deep/ .uni-countdown {
        .uni-countdown__number {
            font-size: 24rpx;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 40rpx;
            width: 30rpx;
            border-radius: 6rpx;
        }

        .uni-countdown__splitor {
            font-size: 24rpx;
        }
    }
}

/** 倒计时样式 end */


/** 规格弹出层按钮 begin */
// .spec-btn-group {
//     z-index: 99;
//     position: absolute;
//     // margin-top: 126rpx;
//     background-color: $theme-panel-bg-color;
//     bottom: 0;
//     left: 24rpx;
//     right: 24rpx;
//     height: calc(100rpx + var(--safe-area-inset-bottom));
//     font-size: $theme-size-large-base;

//     .btn {
//         height: 80rpx;
//         line-height: 80rpx;
//         border-radius: 200rpx;
//         color: $theme-color-main-base;
//     }

//     .btn-s {
//         border-radius: 0;
//         height: 80rpx;
//         line-height: 80rpx;
//     }

//     .add-cart-btn {
//         border-radius: 200rpx 0 0 200rpx;
//     }

//     .now-buy-btn {
//         border-radius: 0 200rpx 200rpx 0;
//     }
// }

/** 规格弹出层按钮 end */


.share-mask {
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-direction: column;
    right: 0;
    top: var(--window-top);
    bottom: 0;
    width: 100%;
    z-index: 999;
    transition: 0.3s;

    .btn-group {
        height: 300rpx;
        background-color: #eeeeee;
        width: 100%;
        margin-bottom: var(--safe-area-inset-bottom);
        transform: translateY(100%);
        transition: 0.3s;

        .share-type-btn {
            border-top: 2rpx solid #eeeeee;
            display: flex;
            justify-content: center;
            align-items: center;
            width: 100%;
            height: 90rpx;
            background-color: $theme-panel-bg-color;
            font-size: 28rpx;
            border-radius: 0;
        }

        .cancel-btn.share-type-btn {
            margin-top: 20rpx;
        }
    }

    &.none {
        display: none;
    }

    &.show {
        background: rgba(0, 0, 0, .7);

        .btn-group {
            transform: translateY(var(--safe-area-inset-bottom));
        }
    }
}

.poster-wrap {
    display: flex;
    align-items: center;
    // justify-content: center;
    flex-direction: column;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    z-index: 999;
    background-color: rgba(0, 0, 0, .7);


    .poster-image {
        margin-top: 64rpx;
        border-radius: 12rpx;
        width: 670rpx;
        height: 1004rpx;
    }

    .save-image-btn {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 12rpx;
        height: 88rpx;
        width: 670rpx;
        border-radius: 16rpx;
        background-color: $theme-panel-bg-color;
        font-size: 28rpx;
        font-weight: 500;
    }
}

/** 画布 begin */
.hide-canvas-box {
    position: relative;

    .hide-canvas {
        position: fixed;
        top: -99999rpx;
        left: -99999rpx;
        z-index: -99999;
    }
}

/** 画布 end */